package cn.faifai.framework.service.impl;

import cn.faifai.framework.service.FileService;
import org.springframework.stereotype.Service;

import java.nio.file.Path;
import java.nio.file.Paths;

@Service
public class WindowsFileService implements FileService {
    @Override
    public String getFileSystemMountPoint(String path){
        return Paths.get(path).getRoot().toString();
    }
}
